import request from '@/utils/request1'

// 员工档案汇总分页
export function getCollect(params) {
  return request({
    url: '/collect/selectPage',
    method: 'POST',
    params
  })
}

// 添加
export function insertCollect(data) {
  return request({
    url: '/collect/insert',
    method: 'POST',
    data
  })
}

// 修改
export function updateCollect(data) {
  return request({
    url: '/collect/update',
    method: 'POST',
    data
  })
}

// 单查询
export function selectCollect(params) {
  return request({
    url: '/collect/findId',
    method: 'post',
    params
  })
}

// 删除证件管理数据
export function delCollect(data) {
  return request({
    url: '/collect/del',
    method: 'post',
    data
  })
}

// 员工信息查询
export function selectName(params) {
  return request({
    url: '/collect/selectName',
    method: 'post',
    params
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 查看List
export function selectList(params) {
  return request({
    url: '/collect/selectList',
    method: 'post',
    params
  })
}

// 分页删除操作
export function delArchive(data) {
  return request({
    url: '/collect/delArchive',
    method: 'post',
    data
  })
}

// 请求查看员工档案的信息
export function sendCollect(data) {
  return request({
    url: '/collect/send',
    method: 'post',
    data
  })
}
